package com.quxiu.system.controller;

public class TestController {
    public static void main(String[] args) {
//        String s = Integer.valueOf("10101", 2).toString();
//        System.out.println(s);
        int select = 0b0001;
        int create = 0b0010;
        int update = 0b0100;
        int delete = 0b1000;

        int test = select | create | update;
        int myAuth = 0b1111;

        System.out.println((myAuth & test) == test);
        System.out.println(Integer.toBinaryString(delete));
    }
}
